<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">分享标签</h3>
    </div>
    <div class="well">
         <form class="form-inline" role="form">
            <button type="submit" class="btn btn-info"> 查询</button>
        </form>
        <div class="pagination">
            <button type="button" class="btn btn-primary" id="remove_items">
                删除
            </button>
        </div>
    </div>
    <div class="panel-body">
        <table class="table table-condensed table-striped">
            <thead>
            <tr>
                <th><input type="checkbox" class="rows_check" /> </th>
                <th>编号</th>
                <th>标题</th>
                <th>描述</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
                <?php if(isset($newsList['list'])):?>
                <?php foreach($newsList['list'] as $key=>$list):?>
                <tr>
                    <td><input type="checkbox" class="row_check" data-id="<?php echo $list['id'] ?>" /></td>
                    <td><?php echo $key+1 ?></td>
                    <td><?php echo $list['title'] ?></td>
                    <td><?php echo $list['description'] ?></td>
                    <td><?php echo $list['createdon'] ?></td>
                    <td>
                        <button type="button" class="btn btn-primary remove_item"  data-id="<?php echo $list['id'] ?>">
                            删除
                        </button>
                    </td>
                </tr>
                <?php endforeach; ?>
            <?php endif;?>
            </tbody>
        </table>
        <?php if($pages>1):?>
             <div class="well well-sm" style="text-align: center"><?php echo HTML::getPageHtml($page,$pages,"/admin/site/news?t=1")?></div>
        <?php endif;?>
    </div>
</div>


